package com.forever7776.life.admin.controller.life;

import com.forever7776.life.admin.controller.BaseController;
import com.forever7776.life.core.entity.admin.AdminUser;
import com.forever7776.life.core.entity.sys.SysUser;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author kz
 * @date 2017年12月29日14:32:07
 * @desc 用户首页
 */
@Controller
@RequestMapping(value = "/m")
public class MyController extends BaseController {

    @RequestMapping
    public String index(ModelMap map) {
        AdminUser user = getAdminUser();
        map.put("user", user);
        return LIFE_ADMIN_VIEW_PAGE_PATH + "index";
    }

}
